package com.lzj.demo.design.visitor;

import com.lzj.demo.design.visitor.visitor.Parent;
import com.lzj.demo.design.visitor.visitor.President;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class Test {
    public static void main(String[] args) {
        DataView dataView = new DataView();
        log.info("家长角度访问:");
        dataView.show(new Parent());
        log.info("校长角度访问:");
        dataView.show(new President());
    }
}
